<!DOCTYPE html>
<html>
<head>
    <% include ../common/meta.ejs %>
    <% include ../common/public.ejs %>
</head>
<body>
<% include ../common/header.ejs %>

<div class="container">
    <div class="dolphin-row main page-content">
        <div class="page-header">
            <h5 class="content-title">角色管理</h5>
            <div class="pull-left">
                <ul class="fl">
                    <li>
                        <button class="btn btn-block btn-info newRole"><i class="fui-plus-circle icon-menu"></i></i>
                            <span>新建角色</span>
                        </button>
                    </li>
                    <li>
                        <button class="btn btn-block btn-success roleAccountBtn"><i class="fui-user icon-menu"></i>
                            <span>角色人员更新</span>
                        </button>
                    </li>
                </ul>
            </div>
        </div>

        <div id="dataList" class="box-content"></div>
    </div>
</div>

<div class="modal fade" id="dataModal" tabindex="-1" role="dialog" aria-labelledby="dataModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="dataModalLabel">新增账号</h4>

            </div>
            <div class="modal-body">
                <form class="form-horizontal edit-form">
                    <input type="hidden" class="form-control" name="id">
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">角色名称</label>
                        <div class="col-md-6">
                            <input class="form-control" name="name" type="text" dol-validate="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">角色编码</label>
                        <div class="col-md-6">
                            <input class="form-control" name="code" type="text" dol-validate="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-offset-1 col-md-2 control-label">角色权限</label>
                        <div class="col-md-6">
                            <select name="_permits" multiple id="permits_select"
                                    style="height: 300px;width: 100%;">
                                <option class="permitsOpt special _order" value="1:_order:业务管理">会员管理</option>
                                <option class="permitsOpt order_undoList" value="11:order_undoList:我的待办:coffee">
                                    会员管理-会员信息
                                </option>
                                <option class="permitsOpt order_delegate" value="12:order_delegate:代理设置:key">
                                    会员管理-合同管理
                                </option>
                                <option class="permitsOpt special _customer" value="2:_customer:客户管理">物业管理</option>
                                <option class="permitsOpt customer_myCustomer"
                                        value="21:customer_myCustomer:我的客户:group">物业管理-房屋信息
                                </option>
                                <option class="permitsOpt customer_customerLimit"
                                        value="22:customer_customerLimit:客户限售:umbrella">物业管理-报修处理
                                </option>
                                <option class="permitsOpt special _system" value="5:_system:系统管理">系统管理</option>
                                <option class="permitsOpt system_accountManagement"
                                        value="51:system_accountManagement:账号管理:user-md">系统管理-账号管理
                                </option>
                                <option class="permitsOpt system_roleManager"
                                        value="52:system_roleManager:角色管理:magnet">系统管理-角色管理
                                </option>
                                <option class="permitsOpt system_enumManager"
                                        value="55:system_enumManager:数据字典:cogs:divider">系统管理-数据字典
                                </option>
                                <option class="permitsOpt system_sysconfig"
                                        value="56:system_sysconfig:系统配置:book:divider">系统管理-系统配置
                                </option>
                                <option class="permitsOpt special _news" value="4:_news:新闻管理">新闻管理</option>
                            </select>
                            <!--<select multiple="multiple" id="multi-select-permit">-->
                            <!--<option value="1">January</option>-->
                            <!--<option value="12">December</option>-->
                            <!--</select>-->
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary modelSave">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<% include ../common/footer.ejs %>
</body>
</html>
